package cn.gyx.hrm.fegin.client;

import cn.gyx.hrm.doc.CourseDoc;
import cn.gyx.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.*;

//全文搜索的API
@FeignClient(value = "service-search" ,fallbackFactory = CourseESFeignClientfallbackFactory.class)
@RequestMapping("/course")
public interface CourseESFeignClient {
    @PostMapping("/save")
    public AjaxResult save(@RequestBody  CourseDoc course);
}